package com.xudow.app.ui.widget;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.widget.TextView;
import com.xudow.app.R;

/**
 * Progress dialog
 *
 * @author lukecheng
 */
public class LoadingDialog extends Dialog {

    public LoadingDialog(Activity context, String message) {
        super(context, R.style.LoadingDialog);
        setContentView(R.layout.dialog_loading);
        getWindow().setBackgroundDrawableResource(android.R.color.transparent);
        TextView msgView = (TextView) findViewById(R.id.loading_msg);
        msgView.setText(message);
    }
}
